import React from 'react';

import Main from './routes/main';
import Project from './routes/project';

import {
  createBrowserRouter,
  RouterProvider
} from "react-router-dom";


const router = createBrowserRouter([
  {
    path: "/",
    element: (<Main />),
  },
  {
    path: "/project/:token",
    element: (<Project />),
  }
]);

const App: React.FC = () => {
  return (
    <RouterProvider router={router}/>
  );
};

export default App;
